<?php
/**
 * @author Anh Nguyen
 * @copyright 2012
 */
 defined('APP') or die('Denied access !');
 
 class Default_Controller_Index extends Controller
 {
    public function indexAction()
    {
        session_start();
        $this->tpl->tpl_start('home/home');
        $this->load_header();
        $this->tpl->assign($this->cache->get('url_index'));
        $this->tpl->parse('url_index');
        if(!isset($_SESSION[Core::$config['session_pre'] . 'username']) OR !isset($_COOKIE[Core::$config['session_pre'] . 'username'])) {
            $this->layout->AddSharedJs('login');
        }
        $this->tpl->assign(
                            array('web_title'   =>      Core::$config['web_title'],
                                  'base_url'    =>      BASE_URL)
                            );
        $this->load_footer();
        $this->tpl->tpl_out();
    }
	
 }
?>